<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>

<!DOCTYPE HTML>
<html manifest="">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="UTF-8">
    <style type="text/css">
        .x-grid-body{
            overflow:hidden;!important;
            overflow-y: auto;!important;
        }
        .x-html-editor-tb .x-edit-justifycenter, .x-menu-item div.x-edit-justifycenter{
            background-position: -128px 0;
        }
        .x-html-editor-tb .x-edit-justifyright, .x-menu-item div.x-edit-justifyright{
            background-position: -142px 0
        }
    </style>
    <title>正经抽货</title>
    <%--<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=MYRycSj3ZK1WZdLYEtzi2BDG"></script>--%>
    <!-- The line below must be kept intact for Sencha Cmd to build your application -->
    <%--<script id="microloader" type="text/javascript" src="${pageContext.request.contextPath}/scripts/ext5/ext/build/ext-all-debug.js"></script>--%>
    <%--<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/ext5/ext/build/packages/ext-charts/build/ext-charts-debug.js"></script>--%>
    <%--<script type="text/javascript" src="${pageContext.request.contextPath}/scripts/ext5/ext/build/packages/ext-locale/build/ext-locale-zh_CN.js"></script>--%>
    <script  type="text/javascript" src="${pageContext.request.contextPath}/scripts/util/dateFormat.js"></script>
    <script  type="text/javascript" src="${pageContext.request.contextPath}/scripts/zjch_dealer/dashboard.js"></script>
    <%--<script  type="text/javascript" src="${pageContext.request.contextPath}/scripts/ext5/ext/example/examples.js"></script>--%>
    <%--<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/scripts/ext5/bootstrap.css" />--%>
    <%--<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/styles/home.css" />--%>
    <%--<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/scripts/ext5/ext/example/example.css" />--%>
    <%--<link rel="shortcut icon" type="image/x-icon" href="${pageContext.request.contextPath}/images/qrcode.png" media="screen"  />--%>
    <%--<link rel="shortcut icon" href="https://www.baidu.com/favicon.ico" type="image/x-icon">--%>
    <%--<link rel="icon" sizes="any" mask="" href="//www.baidu.com/img/baidu.svg">--%>
    <%--<link rel="icon" sizes="any" mask="" href="${pageContext.request.contextPath}/images/icon-phone.png" />--%>
    <%--<link rel=”shortcut icon” href=”${pageContext.request.contextPath}/images/icon-card.png” type=”image/x-icon” />--%>
    <%--<link rel=”shortcut” href=”${pageContext.request.contextPath}/images/icon-card.png” />--%>
    <%--<LINK href=”${pageContext.request.contextPath}/images/icon-card.png” rel=”SHORTCUT ICON”>--%>
    <script type="text/javascript">

        Ext.override(Ext.Window, {
            constrainHeader:true // 窗体标题栏不能移出浏览器
        });
        Ext.override(Ext.data.Store, {
            pageSize:25
        });
        Ext.override(Ext.grid.column.Column, {
            sortable: false,
            draggable: false,
            menuDisabled: true
        });

        Ext.override(Ext.grid.Panel, {
            overFlowX:false,
            autoScroll:false
        });
        function getParamString(param){
            var paramString='?';
            var index=0;
            for(var i in param){
                if(0==index){
                    paramString+=i;
                    paramString+='=';
                    paramString+=param[i]==null?"":param[i];
                }else{
                    paramString+='&';
                    paramString+=i;
                    paramString+='=';
                    paramString+=param[i]==null?"":param[i];
                }
                index++;
            }
            return paramString;

        }
//        var scriptTag = document.getElementsByTagName("script");
//        alert(scriptTag);
//        for(var i=0;i<scriptTag.length;i++){
//            console.log(scriptTag[i].src);
//        }

        /**
         ** 乘法函数，用来得到精确的乘法结果
         ** 说明：javascript的乘法结果会有误差，在两个浮点数相乘的时候会比较明显。这个函数返回较为精确的乘法结果。
         ** 调用：accMul(arg1,arg2)
         ** 返回值：arg1乘以 arg2的精确结果
         **/
        function accMul(arg1, arg2) {
            var m = 0, s1 = arg1.toString(), s2 = arg2.toString();
            try {
                m += s1.split(".")[1].length;
            }
            catch (e) {
            }
            try {
                m += s2.split(".")[1].length;
            }
            catch (e) {
            }
            return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m);
        }

    </script>
</head>
<body></body>
</html>
